<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>博客首页</title>
    <link href="./layui/css/layui.css" rel="stylesheet">
</head>
<body>
<ul class="layui-nav" lay-filter="">
    <li class="layui-nav-item layui-this"><a href="">首页</a></li>
    <li class="layui-nav-item"><a href="./page1.html">页面1</a></li>
    <li class="layui-nav-item"><a href="./page2.html">页面2</a></li>
    <li class="layui-nav-item">
        <a href="javascript:;">页面3</a>
        <dl class="layui-nav-child"> <!-- 二级菜单 -->
            <dd><a href="./page3-1.html">页面3-1</a></dd>
            <dd><a href="">页面3-2</a></dd>
            <dd><a href="">页面3-3</a></dd>
        </dl>
    </li>
    <li class="layui-nav-item"><a href="">页面4</a></li>
</ul>

<div class="index-card">
    <div class="layui-card">
        <div class="layui-card-header">卡片面板1</div>
        <div class="layui-card-body">
            卡片式面板面板通常用于非白色背景色的主体内<br>
            从而映衬出边框投影
        </div>
    </div>
    <div class="layui-card">
        <div class="layui-card-header">卡片面板2</div>
        <div class="layui-card-body">
            卡片式面板面板通常用于非白色背景色的主体内<br>
            从而映衬出边框投影
        </div>
    </div>
</div>

<script src="./layui/layui.js"></script>

<script>
    layui.use('element', function(){
        var element = layui.element;

        //…
    });

</script>

<style>
    body {
        height: 100%;
        background-color: #ABA9A9F4;
    }

    .index-card {
        margin-top: 60px;
        width: 40%;
        margin-left: 15%;
    }

    .layui-card {
        background-color: #FFFFFFFF;
        height: 150px;
    }

    .layui-card-header{
        font-size: 20px;
    }

</style>

</body>


</html>
